raar.behaviour
Class RACompareObject

java.lang.Object
  extended byraar.behaviour.RACompareObject
All Implemented Interfaces:
RALogObject, java.io.Serializable

public class RACompareObject
extends java.lang.Object
implements RALogObject

See Also:
Serialized Form

Field Summary
static int EQUALS
           
static int LARGER
           
static int LARGER_EQUALS
           
static int SMALLER
           
static int SMALLER_EQUALS
           
 
Constructor Summary
RACompareObject(RAEqualityComparable a, RAEqualityComparable b, int compareType)
           
 
Method Summary
 boolean bValue()
           
 boolean compare()
          Compares two comparable objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EQUALS

public static final int EQUALS
See Also:
Constant Field Values

LARGER

public static final int LARGER
See Also:
Constant Field Values

SMALLER

public static final int SMALLER
See Also:
Constant Field Values

LARGER_EQUALS

public static final int LARGER_EQUALS
See Also:
Constant Field Values

SMALLER_EQUALS

public static final int SMALLER_EQUALS
See Also:
Constant Field Values
Constructor Detail

RACompareObject

public RACompareObject(RAEqualityComparable a,
                       RAEqualityComparable b,
                       int compareType)
                throws RAException
Method Detail

compare

public boolean compare()
                throws RAException
Compares two comparable objects. If one of them is null, the result is false. If both are null, the result is obviously true.

Throws:
RAException

bValue

public boolean bValue()
               throws RAException
Specified by:
bValue in interface RALogObject
Throws:
RAException